#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Description: 初始化flask

from flask import Flask

from app.routes.login import bp
from config import Config


def create_app(config_class=Config):
    app = Flask(__name__)
    app.config.from_object(config_class)

    # 注册蓝图或路由
    app.register_blueprint(bp)

    return app
